export default {
  computed: {
    planNameLabel () {
      const labels = new Map([
        ['1', '预研'],
        ['2', '研制'],
        ['3', '订购'],
        ['4', '维修']
      ])
      return labels.get(this.planName)
    }
  },
  data () {
    return {
      planName: '1'
    }
  },
  methods: {
    advance () {
      this.planName = '1'
    },
    develop () {
      this.planName = '2'
    },
    order () {
      this.planName = '3'
    },
    maintain () {
      this.planName = '4'
    }
  }
}